package com.rr;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author : RENBIAO
 * @createTime : 2021/7/9 10:29
 */
//@ImportResource(locations = {"classpath:provider.xml"})
//@SpringBootApplication
public class GmallProviderDubboApplication {

    public static void main(String[] args) throws IOException {
//        SpringApplication.run(GmallProviderDubboApplication.class, args);
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:provider.xml");

        context.start();

        System.in.read();

    }
}
